K.
provides("K.ui.Theme").
run(function(I) {
    var PREFIX = "theme-",
        Theme = K.kin(function(o, name) {
            K.merge(o, {
                name : function() {
                    return name;
                },
                
                apply : function(component) {
                    var e = component.element();
                    e.attr("class", e.classes().filter(function(c) { return c.indexOf(PREFIX) !== 0; }).join(" "));
                    e.addClass(PREFIX + name);
                }
            });
        });
    
    return Theme;
});